package com.itcc.dao;

import com.itcc.entity.Item;
import com.itcc.entity.Orders;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface OrdersDao {
    void insertOrders(Orders oder) throws SQLException;

    void insertItems(List<Item> items) throws SQLException;

    List<Orders> selectOrdersByUid(int uid) throws SQLException, InvocationTargetException, IllegalAccessException;

    Orders selectOrderByOid(String oid) throws SQLException, InvocationTargetException, IllegalAccessException;

    List<Item> selectItemsByOid(String oid) throws SQLException, InvocationTargetException, IllegalAccessException;

    void updateStatusByOid(String oid) throws SQLException;

    List<Orders> findAllOrders() throws SQLException;
}
